home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / time / navyti.arc / NAVYTIME.DOC < prev    next >
Text File  |  1989-01-09  |  5KB  |  90 lines

  1.  
  2.  
  3.  
  4.     NAVYTIME calls the Naval Observatory in Washington, DC for the 
  5.     correct time, and sets your computer's time accordingly.  NAVYTIME
  6.     sets your system clock, the real-time clock in an AT, and optionally
  7.     it can set the clock of a Novell file server if run from a workstation
  8.     signed on as the supervisor. 
  9.  
  10.     NAVYTIME was written by Zedak Corp of New York City, and may be used   
  11.     and copied freely.             
  12.     
  13.     syntax:  NAVYTIME [parmfilename] [/w]                     
  14.  
  15.     or NAVYTIME ? or NAVYTIME /help  for a help message
  16.                                                           
  17.          parmfilename is the name of a parameter file.    
  18.          if a parmfile is not specified, NAVYTIME looks for one    
  19.             called NAVYTIME.CFG in the current directory. 
  20.                                                           
  21.          /w means write a default parameter file.         
  22.          it is written to parmfilename or to NAVYTIME.CFG 
  23.             if no parmfilename was specified.             
  24.  
  25.          The parameters file is an ASCII text file with one line
  26.          per parameter. Each line consists of a keyword followed
  27.          by a blank followed by a parameter.  Keywords all start 
  28.          with a period.  The keywords are:
  29.  
  30.          1)  .DialString  is a command string to cause the modem to
  31.              dial the Naval Observatory.  The string can be whatever
  32.              it takes to make your modem do its thing.  The default 
  33.              string is suitable for a Hayes 2400 baud modem or 
  34.              compatible.  The following command sequences are recognized 
  35.              by NAVYTIME when embedded in the dial string, and are handled
  36.              specially during dial command transmission:
  37.                 \d  quit if the modem Data Set Ready signal is not active
  38.                 \c  quit if the modem has not sent back any chars yet    
  39.                 \1 thru \9  delay n timer ticks (18ms each)
  40.                 \n emit linefeed (hex 0A)                            
  41.                 \r emit carriage return (hex 0D)                     
  42.                 \b emit blank (trailing blanks are trimmed in dial string)
  43.  
  44.          2) .HangUp  a control string to cause the modem to hang up.
  45.             This is not really needed for a Hayes because the default dial
  46.             string will cause the Hayes to hang up when NAVYTIME drops the
  47.             Data Terminal Ready signal, but some compatibles don't have that
  48.             feature.
  49.  
  50.          3) .ConnectMsgs  a set of messages to be recognized as an indication
  51.             that the modem has connected.  The messages are started, ended,
  52.             and delimited by slashes.  For a Hayes or compatible, CONNECT is
  53.             the standard message, so /CONNECT/ is a good parameter.
  54.  
  55.          3) .FailMsgs  a set of messages to be recognized as an indication
  56.             that the modem has failed to connect.  The messages are started, 
  57.             ended, and delimited by slashes.  For a Hayes or compatible, 
  58.             /NO CARRIER/BUSY/NO DIALTONE/ERROR/ all indicate we are not
  59.             going to get through.
  60.  
  61.          4) .CharDelay  A number of ticks to delay between characters of 
  62.             dial command string.  Some modems cannot accept command strings
  63.             at full speed (like MicroCom), so CharDelay should be set to 1
  64.             for them.  For a Hayes, 0 is fine.
  65.  
  66.          5) .ComPort may be 1 or 2 for COM1 or COM2.  
  67.  
  68.          6) .TimeZone  The number of hours to add to a Zulu time to 
  69.             compute local time.  For Eastern Standard Time, -5 is correct.
  70.             for Pacific Standard, -8 is correct.  
  71.  
  72.          7) .Daylight  y if Daylight Savings is in effect.
  73.  
  74.          8) SetServer  y if the computer is a workstation on a Novell
  75.             Network and NAVYTIME should set the file server's time as
  76.             well.  This feature requires that the workstation be signed
  77.             on with supervisor authority.
  78.  
  79.  Default Parameters                                       
  80.    .DialString \dATQ0V1S11=50S12=3&C1&D2L1 DT 1 202 653 0351\r\6
  81.    .HangUp \6+++\6ATH\r                                
  82.    .ConnectMsgs /CONNECT/                                 
  83.    .FailMsgs /NO CARRIER/BUSY/NO DIALTONE/ERROR/          
  84.    .CharDelay 0          1 = slow modem commands (microcom
  85.    .ComPort 1            Com 1 or Com 2 are supported     
  86.    .TimeZone -5          Hours to add to Zulu for local   
  87.    .Daylight n           Daylight Savings time            
  88.    .SetServer y          y means set Novell Server clock  
  89.                          (requires supervisor privilege)  
  90.